Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to move_to_target #5

Merged
merged 1 commit into from
Feb 20, 2021

Conversation

0rvar
Copy link
Contributor

@0rvar 0rvar commented Feb 17, 2021

  • Handle overshoot (change direction)
  • Calculate speed per second instead of per loop
  • Adjust thresholds for stopping

Oh, and also doubled number of connection attempts since my MacBook fails half the time otherwise.

* Handle overshoot (change direction)
* Calculate speed per second instead of per loop
* Adjust thresholds for stopping
@aklajnert
Copy link
Owner

Thanks! I wanted to fix overshooting myself, but I didn't have time to do that.
I need some time to review it (and figure out why tests are failing on Windows) - probably I'll be able to do that on weekend.
I'm not really sure what's the benefit of speed per second instead of per loop (pretty sure speed per loop was easier to implement), but I don't really remember this code so I need to refresh my memory.

@0rvar
Copy link
Contributor Author

0rvar commented Feb 17, 2021

The speed per loop varies wildly for me, but the speed per second is much more stable. A stable number is easier to compare against, and should be the same on different computers too

@aklajnert
Copy link
Owner

Oh, I didn't know that the speed can be different - was quite stable for me. Good to know, thanks.

@aklajnert aklajnert merged commit 07d8b4d into aklajnert:master Feb 20, 2021
@0rvar 0rvar deleted the move_to_improvements branch February 20, 2021 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants